#include <iostream>

using namespace std;

int& f(){
    static int a = 5;
    cout << &a << endl;
    cout << a << endl;
    return a;
}

int main(){
    int& b = f();
    b++;
    f();
    return 0;
}